import Vue from "vue";
import App from "./App";

import $util from "./static/lib/util.js";
Vue.prototype.$http = $util;

import $api from "./static/lib/api.js";
Vue.prototype.api = $api;

import $http from "./static/lib/request.js"
Vue.prototype.https = $http

import store from './store/index.js'
Vue.prototype.$store = store

// 全局图片上传
import ChooseImage from './static/lib/ChooseImage.js'
Vue.prototype.$ChooseImage = ChooseImage


Vue.prototype.IsLogin = function() {
	const token = uni.getStorageSync('token')
	if (token) {
		return true
	}
	return false
}


import cuCustom from "./colorui/components/cu-custom.vue";
Vue.component("cu-custom", cuCustom);

App.mpType = "app";

const app = new Vue({
	...App,
	store,
});
app.$mount();